package cn.iocoder.yudao.module.ordering.controller.admin.record.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 餐品-订餐记录分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class RecordPageReqVO extends PageParam {

    @Schema(description = "餐品id", example = "31443")
    private Long foodId;

    @Schema(description = "名称", example = "王五")
    private String name;

    @Schema(description = "餐品类型", example = "1")
    private String type;

    @Schema(description = "价格", example = "11368")
    private BigDecimal price;

    @Schema(description = "状态，0已订餐，1已送餐，2已取餐，3用户取消，4系统取消", example = "2")
    private Integer status;

    @Schema(description = "预定日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] orderDate;

    @Schema(description = "用户id", example = "15115")
    private Long userId;

    @Schema(description = "用户昵称", example = "赵六")
    private String userName;

    @Schema(description = "部门id", example = "9128")
    private Long deptId;

    @Schema(description = "部门名称", example = "王五")
    private String deptName;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
